﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace array
{
    class Program
    {
        static void Main(string[] args)
        {

            int[] numbers = new int[10] { 1, 3, 5, 7, 10, 12, 15, 18, 24, 48 };
            
            foreach (int i in numbers)
            {

                int z2 = i % 2;



                if (z2 == 0)
                { System.Console.Write("{0} ", i); }
            }
            { System.Console.WriteLine(); }
            foreach (int i1 in numbers)
            {
                int z3 = i1 % 3;
                if (z3 == 0)
                { System.Console.Write("{0} ", i1); }
            }
            { System.Console.WriteLine(); }
            foreach (int i2 in numbers)
                    { int z6 = i2 % 6;
                        if (z6 == 0)
                        { System.Console.Write("{0} ", i2); }

                        //System.Console.Write("{0} ", i);
                    }

                    System.Console.ReadLine();
                }
            }
        }
    
